﻿@if (Session["id"] != null)
{
    if ((int) Session["id"] != 990)
    {
        <text>
            Здравствуйте, @Html.ActionLink((string) Session["Name"], "Manage", "Account", routeValues: null, htmlAttributes: new {@class = "username", title = "Управление"})!
            @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new {id = "logoutForm"}))
            {
                @Html.AntiForgeryToken()
                <a href="javascript:document.getElementById('logoutForm').submit()">Выйти</a>
            }
        </text>
    }
}
else
{
    <ul>
        <li>@Html.ActionLink("Регистрация", "Register", "Account", routeValues: null, htmlAttributes: new {id = "registerLink"})</li>
        <li>@Html.ActionLink("Выполнить вход", "Login", "Account", routeValues: null, htmlAttributes: new {id = "loginLink"})</li>
    </ul>
}
